package com.ruoyi.common.constant;

/**
 * 订单状态表
 */
public enum OrderCheckStatu {
    checkNo(0, "未审核"),
    checkSuccess(1, "审核成功"),
    checkFail(2, "审核失败");

    int value;
    String name;

    OrderCheckStatu(int value, String name) {
        this.value = value;
        this.name = name;
    }

    public int getValue() {
        return value;
    }

    public String getName() {
        return name;
    }

    public static OrderCheckStatu getByValue(int value) {
        for(OrderCheckStatu typeEnum : OrderCheckStatu.values()) {
            if(typeEnum.value == value) {
                return typeEnum;
            }
        }
        throw new IllegalArgumentException("No element matches " + value);
    }


}
